#!/usr/bin/env python
# encoding: utf-8
# @author: Lin Han
# @contact: voldemort22@126.com
# @file: add_03_to_01.py
# @time: 2021/5/6 8:53
# @desc:
import pymongo

from .views.configs import *
from .utils.utils import read_json, save_json

original_clamp = read_json(r"data/export_data/history_clamp_20210428.json")

for i in original_clamp:
    i.pop("_id")
    i["related"] = {"standardClamp": []}

save_json(original_clamp, "data/export_data/history_clamp_20210506.json")